package com.cookor.poi.modules.phy.entity;

import com.cookor.poi.common.persistence.DataEntity;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

public class TBookNo extends DataEntity<TBookNo> {
  private static final long serialVersionUID = 1L;
  
  private Integer tenantId;
  
  private Integer actionId;
  
  private Integer officeId;
  
  private Integer doctorId;
  
  private Integer bookYear;
  
  private Integer bookMonth;
  
  private Integer bookDay;
  
  private String bookTime;
  
  private Integer bookNo;
  
  private Integer status;
  
  private Integer type;
  
  public TBookNo() {}
  
  public TBookNo(String id) {
    super(id);
  }
  
  @NotNull(message = "租户id不能为空")
  public Integer getTenantId() {
    return this.tenantId;
  }
  
  public void setTenantId(Integer tenantId) {
    this.tenantId = tenantId;
  }
  
  @NotNull(message = "医生id不能为空")
  public Integer getDoctorId() {
    return this.doctorId;
  }
  
  public void setDoctorId(Integer doctorId) {
    this.doctorId = doctorId;
  }
  
  @NotNull(message = "officeid不能为空")
  public Integer getOfficeId() {
    return this.officeId;
  }
  
  public void setOfficeId(Integer officeId) {
    this.officeId = officeId;
  }
  
  @NotNull(message = "年份不能为空")
  public Integer getBookYear() {
    return this.bookYear;
  }
  
  public void setBookYear(Integer bookYear) {
    this.bookYear = bookYear;
  }
  
  @NotNull(message = "月不能为空")
  public Integer getBookMonth() {
    return this.bookMonth;
  }
  
  public void setBookMonth(Integer bookMonth) {
    this.bookMonth = bookMonth;
  }
  
  @NotNull(message = "日不能为空")
  public Integer getBookDay() {
    return this.bookDay;
  }
  
  public void setBookDay(Integer bookDay) {
    this.bookDay = bookDay;
  }
  
  @Length(min = 1, max = 32, message = "时间长度必须介于 1 和 32 之间")
  public String getBookTime() {
    return this.bookTime;
  }
  
  public void setBookTime(String bookTime) {
    this.bookTime = bookTime;
  }
  
  @NotNull(message = "状态不能为空")
  public Integer getStatus() {
    return this.status;
  }
  
  public void setStatus(Integer status) {
    this.status = status;
  }
  
  @NotNull(message = "上下午不能为空")
  public Integer getType() {
    return this.type;
  }
  
  public void setType(Integer type) {
    this.type = type;
  }
  
  @NotNull(message = "编号不能为空")
  public Integer getBookNo() {
    return this.bookNo;
  }
  
  public void setBookNo(Integer bookNo) {
    this.bookNo = bookNo;
  }
  
  public Integer getActionId() {
    return this.actionId;
  }
  
  public void setActionId(Integer actionId) {
    this.actionId = actionId;
  }
}
